package com.clouddot.baipai.module;


import com.clouddot.baipai.contract.IMainFragmentContract;
import com.clouddot.baipai.contract.ISchoolFragmentContract;
import com.clouddot.baipai.model.MainFragmentModel;
import com.clouddot.baipai.model.SchoolFragmentModel;
import com.clouddot.baipai.presenter.MainFragmentPresenter;
import com.clouddot.baipai.presenter.SchoolFragmentPresenter;

import dagger.Module;
import dagger.Provides;

@Module
public class MainFragmentModule {

    private IMainFragmentContract.IView mView;

    public MainFragmentModule(IMainFragmentContract.IView view) {
        mView = view;
    }

    @Provides
    public IMainFragmentContract.IPresenter providerPresenter() {
        return new MainFragmentPresenter(mView, new MainFragmentModel(mView.getContext()));
    }
}
